.TH lis_array_sum 3 "3 Dec 2014" "Man Page" "Lis Library Functions"

.SH NAME

lis_array_sum \- calculate the sum of the elements of the vector

.SH SYNOPSIS

#include "lis.h"

\fBLIS_INT lis_array_sum\fR(\fBLIS_INT n\fR, \fBLIS_SCALAR x[]\fR, \fBLIS_SCALAR *value\fR);

.SH DESCRIPTION

Calculate the sum of the elements of vector \fIx\fR.

.IP "\fBn\fR"
The size of the vector

.SH INPUT

.IP "\fBx\fR"
The array that stores the vector

.SH OUTPUT

.IP "\fBvalue\fR"
The sum of the vector elements

.SH EXIT STATUS

The following exit values are returned:
.IP "0"
The process is normally terminated
.IP "unspecified"
An error occurred

.SH SEE ALSO

.BR lis (3)
.PP
http://www.ssisc.org/lis/

